package com.hnucm.ktstudy

class User {
    var name:String?=null
}

fun main(){
    var user=User()
    if(user.name!=null){
        println((user.name)?.length)
    }
}